/*
 * Copyright (C), 2014-2015, 杭州小卡科技有限公司
 * Created by ciwei@xiaokakeji.com on 2016/06/05.
 */
package com.micromall.repository.entity.admin;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author ciwei@xiaokakeji.com
 * @date 2016/06/05.
 */
public class AdminGoods {

	// 商品id
	private Integer             id;
	// 商品标题
	private String              title;
	// 商品图片数组(JSON)
	private List<String>        images;
	// 所属类目
	private Integer             categoryId;
	// 商品价格
	private BigDecimal          price;
	// 商品原始价格
	private BigDecimal          originPrice;
	// 商品库存
	private Integer             inventory;
	// 是否上架（商品卖完后自动下架）(详情页、收藏、购物车用到)
	private Boolean             shelves;
	// 是否促销商品
	private Boolean             promotion;
	// 促销配置
	private Map<String, Object> promotionParams;
	// 运费模板id
	private Integer             freightId;
	// 商品描述
	private String              descr;
	// 产品参数
	private Map<String, Object> productParams;
	// 商品销量
	private Integer             salesVolume;
	// 商品点击量
	private Integer             clicked;
	// 创建时间
	private Date                createTime;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public List<String> getImages() {
		return images;
	}

	public void setImages(List<String> images) {
		this.images = images;
	}

	public Integer getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(Integer categoryId) {
		this.categoryId = categoryId;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public BigDecimal getOriginPrice() {
		return originPrice;
	}

	public void setOriginPrice(BigDecimal originPrice) {
		this.originPrice = originPrice;
	}

	public Integer getInventory() {
		return inventory;
	}

	public void setInventory(Integer inventory) {
		this.inventory = inventory;
	}

	public Boolean getShelves() {
		return shelves;
	}

	public void setShelves(Boolean shelves) {
		this.shelves = shelves;
	}

	public Boolean getPromotion() {
		return promotion;
	}

	public void setPromotion(Boolean promotion) {
		this.promotion = promotion;
	}

	public Map<String, Object> getPromotionParams() {
		return promotionParams;
	}

	public void setPromotionParams(Map<String, Object> promotionParams) {
		this.promotionParams = promotionParams;
	}

	public Integer getFreightId() {
		return freightId;
	}

	public void setFreightId(Integer freightId) {
		this.freightId = freightId;
	}

	public String getDescr() {
		return descr;
	}

	public void setDescr(String descr) {
		this.descr = descr;
	}

	public Map<String, Object> getProductParams() {
		return productParams;
	}

	public void setProductParams(Map<String, Object> productParams) {
		this.productParams = productParams;
	}

	public Integer getSalesVolume() {
		return salesVolume;
	}

	public void setSalesVolume(Integer salesVolume) {
		this.salesVolume = salesVolume;
	}

	public Integer getClicked() {
		return clicked;
	}

	public void setClicked(Integer clicked) {
		this.clicked = clicked;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
}
